package org.wattdepot.cli.commands;

import static org.junit.Assert.assertTrue;
import org.junit.Test;

/**
 * Tests the ListSummary class.
 * @author Jarret Mizo, Shaun Ramento
 *
 */
public class TestListSummary {
  /**
   * Tests the listSummary method.
   * 
   * @throws Exception if there is a problem.
   */
  @Test
  public void testListSummary() throws Exception {
    ListSummary command = new ListSummary();
    String valid = command.listSummary("SIM_KAHE");
    String invalid = command.listSummary("123 super sudpe");
    boolean test;
    test = invalid.isEmpty();
    assertTrue("Checking invaild input", test);
    test = valid.contains("SIM_KAHE");
    assertTrue("Checking valid input", test);
  }
}
